/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package east2west.interfaces;

import com.sun.org.apache.bcel.internal.generic.ARRAYLENGTH;
import east2west.dto.TourTypeDTO;
import java.util.ArrayList;

/**
 *
 * @author nguyendat
 */
public interface TourTypeInterfacE {

    ArrayList<TourTypeDTO> readByAll();

    ArrayList<TourTypeDTO> findByName(String typeName);

    ArrayList<TourTypeDTO> findByDto(TourTypeDTO dto);

    TourTypeDTO findById(int id);

    boolean create(TourTypeDTO dto);

    boolean update(TourTypeDTO dto);

    boolean delete(TourTypeDTO dto);

    boolean delete(int id);
}
